package com.example.shippxy.utils;

import kong.unirest.HttpResponse;
import kong.unirest.Unirest;

public class UnirestUtils {

    public static void main(String[] args) {
        getShip();
    }

    public static void getShip() {
        HttpResponse<String> response = Unirest.post("https://www.shipxy.com/ship/GetShip")
                .header("Cookie", "token=13b65678e1b28c6fe5ed8286ac8e4f86; jfg=a01ce294b485d3f80c5e0dc683d894f7;SERVERID=6a8b1ff85dc382a410b77bedfe5653bb|1703637881|1703637848") //
                .header("Content-Type", "application/x-www-form-urlencoded")
                .field("shipIDs", "413523180")
                .field("mmsi", "413523180")
                .asString();
        System.out.println(response.getBody());
    }


}
